package com.heima.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class SkuClassPageQueryDTO{

    //商品名称
    private String skuName;
    //分类名称
    private String className;

    //页码
    private int pageIndex;

    //每页显示记录数
    private int pageSize;


    public void check() {
        if (pageIndex <= 0) {
            pageIndex = 1;
        }
        if (pageSize <= 0 || pageSize > 100) {
            pageSize = 10;
        }
    }
}
